package com.power.leopard;

import com.power.leopard.config.ConfigManager;
import com.power.leopard.config.file.PropertiesFileConfigManager;
import com.power.leopard.extension.ExtensionLoader;

public class ConfigManagerLoader {

	private static ConfigManager configManager = ExtensionLoader.getInstance(ConfigManager.class);

	static {
		if (configManager == null) {
			configManager = new PropertiesFileConfigManager();
			configManager.init();
		}
	}

	public static ConfigManager getConfigManager() {
		return configManager;
	}
}
